import request from '@/utils/request'

// 查询人员需求列表
export function listHrDemand(query) {
  return request({
    url: '/demand/hrDemand/list',
    method: 'get',
    params: query
  })
}

// 查询人员需求详细
export function getHrDemand(id) {
  return request({
    url: '/demand/hrDemand/' + id,
    method: 'get'
  })
}

// 保存人员需求
export function saveHrDemand(data) {
  return request({
    url: '/demand/hrDemand/save',
    method: 'post',
    data: data
  })
}

// 删除人员需求
export function delHrDemand(id) {
  return request({
    url: '/demand/hrDemand/' + id,
    method: 'delete'
  })
}

// 导出人员需求
export function exportHrDemand(query) {
  return request({
    url: '/demand/hrDemand/export',
    method: 'get',
    params: query
  })
}
